import { createApp } from 'vue'
import App from './App.vue'
import MonitorPlugin from './plugins/monitor'

const app = createApp(App)

// 注册监控插件
if (process.env.NODE_ENV === 'production') {
  app.use(MonitorPlugin, {
    appId: 'your-app-id',
    userId: 'user-id', // 可以是动态的用户ID
    // reportUrl: 'https://your-api.com/report' // 注释掉上报地址
  })
}

app.mount('#app') 